<%@ page language="java" import="cn.yunhe.entity.Admin" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <title>新闻系统后台</title>
  </head>
  	<%-- <%
  	Admin admin=(Admin)session.getAttribute("admin");
  	if(admin==null){
  		response.sendRedirect("adminIndex.jsp");
  	}
  	%>  --%>
  	<c:choose>
  		<c:when test="${not empty sessionScope.admin }">
  			<frameset rows="112,*" frameborder="no" border="0" framespacing="0">
  				<frame src="top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
	 			<frameset id="mainframe" border="0" frameborder="no" framespacing="0" cols="184,*">
	   				<frame src="left.jsp" name="side" id="side" title="side" scrolling="auto" />
	   				<frame src="main.jsp" name="main" id="main" title="main" scrolling="auto"/>
	 			</frameset>
  			</frameset>
  		</c:when>
  		<c:otherwise>
  			<script>location.href="adminIndex.jsp"</script>
  		</c:otherwise>
  	</c:choose>
  <!-- <frameset rows="112,*" frameborder="no" border="0" framespacing="0">
  <frame src="top.jsp" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
	 <frameset id="mainframe" border="0" frameborder="no" framespacing="0" cols="184,*">
	   <frame src="left.jsp" name="side" id="side" title="side" scrolling="auto" />
	   <frame src="main.jsp" name="main" id="main" title="main" scrolling="auto"/>
	 </frameset>
  </frameset> -->
</html>
